﻿using Basic.FormModel.QueryColumn;
using Basic.FormModel.QueryGroup;
using Basic.FormRemoteModel;

namespace Basic.FormCollect.Model
{
    public class PhysicsQueryTable
    {
        public long Id
        {
            get;
            set;
        }
        public string TableName
        {
            get;
            set;
        }
        public string Show
        {
            get;
            set;
        }
        public string[] ColName
        {
            get;
            set;
        }
        public PhyExtendCol[] ExtendCol
        {
            get;
            set;
        }
        public Dictionary<long, PhysicsQueryColumn> Column
        {
            get;
            set;
        }
        public bool IsMainTable { get; set; }

        public PhyQueryGroup[] Groups { get; set; }
    }
    public class PhyExtendCol
    {
        public string Name
        {
            get;
            set;
        }
        public PhyColShowMode Mode
        {
            get;
            set;
        }

        public long Source
        {
            get;
            set;
        }
        public string ColName
        {
            get;
            set;
        }
        public long? DictId
        {
            get;
            set;
        }
        public Dictionary<string, string> Items
        {
            get;
            set;
        }
    }
}
